package cn.iocoder.yudao.im.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 群发消息记录表
 * </p>
 *
 * @author zcc
 * @since 2024-06-26
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_notice_im_public_message")
public class NoticeImPublicMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 发送用户id
     */
    @TableField("send_id")
    private Long sendId;

    /**
     * 接收用户id 逗号拼接
     */
    @TableField("recv_id")
    private String recvId;

    /**
     * 发送内容
     */
    @TableField("content")
    private String content;

    /**
     * 消息类型;0:文字 1:图片 2:文件 3:语音 10:系统提示
     */
    @TableField("type")
    private Integer type;

    /**
     * 状态;0:未读 1:已读 2:撤回
     */
    @TableField("status")
    private Integer status;

    @TableField("send_time")
    private LocalDateTime sendTime;


}
